import 'package:flutter/cupertino.dart';

enum JPFContainerDisplay{
  none,
  visable,
  unVisable
}

class JPFContainer extends Container
{
  JPFContainerDisplay display;

  JPFContainer(this.display,{
    Key key,
    Widget child,}) :super(key: key,child: child);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    if(display==JPFContainerDisplay.none){
      return Container();
    }else if(display==JPFContainerDisplay.unVisable){
      return Opacity(child: child,opacity: 0.65,);
    }else{
      return child;
    }
  }

}